<?php
//phpinfo() が使えないサーバ用　いくつかのサーバ情報を表示する
//update 20111108

define ('THIS_SCRIPT', 'phpinfo.php');
require_once('../../../lib-common.php');

// 権限チェック
if (SEC_hasRights('assist.admin')) {
}else{
    $display="";
    $display .= COM_siteHeader('menu', $MESSAGE[30]);
    $display .= COM_startBlock ($MESSAGE[30], '',
                                COM_getBlockTemplate ('_msg_block', 'header'));
    $display .= $MESSAGE[35];
    $display .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
    $display .= COM_siteFooter();

    // Log attempt to error.log
    COM_accessLog("User {$_USER['username']} tried to illegally access admin/plugins/assist/configback.php ");

    echo $display;

    exit;
}

//-----表示したい項目
$name_ary=array();
$name_ary[]='max_execution_time';
$name_ary[]='max_input_time';
$name_ary[]='upload_max_filesize';
$name_ary[]='post_max_size';
$name_ary[]='memory_limit';

//-----
$display="";
for ($i = 1; $i <= count($name_ary); $i++) {
    $nm=current($name_ary);
	$wk=$nm."=".ini_get($nm)."</br>";
	$display.=$wk;
	next($name_ary);
}
echo $display;



?>